package com.fanxj.service;

import com.fanxj.domain.*;

import java.util.List;

public interface AdminService {
    List<Relic> findAllRelic();

    List<User> findAllUser(String role);

    List<User> findUserByName(String userName);

    List<Relic> findRelicByName(String relicName);

    void deleteUser(User user);

    void updateUser(User user);

    void deleteRelic(Relic relic);

    void deleteGroupType(GroupType groupType);

    List<GroupType> findGroupByName(String searchName);

    void deleteDecadeType(DecadeType decadeType);

    List<DecadeType> findDecadeByName(String searchName);

    List<LocalType> findLocalByName(String searchName);

    void deleteLocalType(LocalType localType);

    void addGroupType(GroupType groupType);

    GroupType findGroupTypeByCode(GroupType groupType);

    void addDecadeType(DecadeType decadeType);

    DecadeType findDecadeTypeByCode(DecadeType decadeType);

    void addLocalType(LocalType localType);

    LocalType findLocalTypeByCode(LocalType localType);

    List<AdminCollection> findAllCollection();

    void deleteCollection(CollectionRelic collectionRelic);

    List<AdminCollection> findCollectionByName(String uName);

    List<TypeCount> findGroupTypeCount();

    List<TypeCount> findCollectionCount();
    void addRelic(Relic relic);
}
